package operator;

/**
 * @author shkstart
 * @date 2022/3/31 - 21:26
 */
/*运算符之三：比较运算符
* == != > < >= <= instanceof
*
* 结论：
* 1.比较运算符的结果是boolean类型
* 2.区分 == 和 =
* */
public class Compare {
    public static void main(String[] args) {
        int i = 10;
        int j = 30;
        System.out.println(i == j);//false
        System.out.println(i = j);//先将j 赋值给 i，然后再运行println

        boolean b1 = true;
        boolean b2 = false;
        System.out.println(b2 == b1);
        System.out.println(b2 = b1);




    }
}
